package com.sanley.piss.model;


import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;

/**
 * Create By  on 2021/3/9.
 * @author 张凯大天才
 */
public  class ServiceImpl<M extends BaseMapper, T> implements IService<T> {
    @Autowired
    protected M baseMapper;

//    public M getBaseMapper() {
//        return baseMapper;
//    }

    @Override
    public void insert(T t) {
        baseMapper.insert(t);
    }

    @Override
    public void updateById(T t) {
        baseMapper.updateById(t);
    }

    @Override
    public void removeByIds(Integer[] ids) {
        baseMapper.removeByIds(ids);
    }



    @Override
    public T selectById(Integer id) {
        return (T) baseMapper.selectById(id);
    }




}
